

import Toast from '../miniprogram_npm/@vant/weapp/toast/toast.js';


const instal=(wx)=>{
       wx.$Toast    = (msg,time)=>{
         Toast(msg)
         setTimeout(() => {
           Toast.clear()
         }, time||1500)
       };

}


module.exports   = instal;
